﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApp2
{
    public class ParameterViewModel : INotifyPropertyChanged
    {
        private int _cyclePurgeCycles;
        private int _cyclePurgePumpPressure;
        private int _cyclePurgeVentPressure;

        public int CyclePurgeCycles
        {
            get => _cyclePurgeCycles;
            set
            {
                _cyclePurgeCycles = value;
                OnPropertyChanged(nameof(CyclePurgeCycles));
            }
        }

        public int CyclePurgePumpPressure
        {
            get => _cyclePurgePumpPressure;
            set
            {
                _cyclePurgePumpPressure = value;
                OnPropertyChanged(nameof(CyclePurgePumpPressure));
            }
        }

        public int CyclePurgeVentPressure
        {
            get => _cyclePurgeVentPressure;
            set
            {
                _cyclePurgeVentPressure = value;
                OnPropertyChanged(nameof(CyclePurgeVentPressure));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        protected void OnPropertyChanged(string propertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
